package com.lotus.lqmp.service.biz;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.lotus.lqmp.base.biz.bean.PageQuery;
import com.lotus.lqmp.service.controller.vo.req.DeliverablesAddReq;
import com.lotus.lqmp.service.controller.vo.req.DeliverablesDeleteReq;
import com.lotus.lqmp.service.controller.vo.req.DeliverablesQueryReq;
import com.lotus.lqmp.service.controller.vo.req.DeliverablesUpdateReq;
import com.lotus.lqmp.service.controller.vo.resp.DeliverablesQueryResp;

/**
 * description
 * @author Shuang.Pan2
 * @since 2022/03/31 13:12
 */
public interface DeliverablesTemplateConfigBizService {

    /**
     * 新增交付物配置模板
     * @param deliverablesAddReq
     */
    void add(DeliverablesAddReq deliverablesAddReq);

    /**
     * 批量删除模板
     * @param deliverablesDeleteReq
     */
    void batchDeleteByIds(DeliverablesDeleteReq deliverablesDeleteReq);

    /**
     * 更新交付物模板
     * @param deliverablesUpdateReq
     */
    void update(DeliverablesUpdateReq deliverablesUpdateReq);

    /**
     * 查询配置模板详情
     * @param id
     * @return
     */
    DeliverablesQueryResp getById(long id);

    /**
     * 分页查询配置模板数据
     * @param queryInfo
     * @return
     */
    Page<DeliverablesQueryResp> queryForPage(PageQuery<DeliverablesQueryReq> queryInfo);
}
